const NewsController = require('../controllers/news.server.controller.js');

module.exports = (app) => {
  app.route('/news').get(NewsController.list).post(NewsController.create);

  app.route('/news/:newsId').get(NewsController.get);

  app.param('newsId', NewsController.getNewsId);
}